package com.net.innerclass;


class Outerclass2
{
	public void display()
	{
		System.out.println(" outer class display");
	}
}


class InnerClass
{
	Outerclass2 obj = new Outerclass2(){
	public void display()
	{
		System.out.println(" Annonymous Class   ");
		display1();
	}
	
	public void display1()
	{
		System.out.println(" print ");
	}
};
}




public class AnnonymousInnerClass {

	public static void main(String[] args) 
	{
		
      InnerClass in = new InnerClass();
      in.obj.display();
	}

}
